<?php
require_once('xingcai_sqlin.php');
$conf['debug']['level']=5;

/*		数据库配置		*/
$conf['db']['dsn']='mysql:host=caipiao.dbhost;dbname=caipiao;charset=utf8';
$dbname='caipiao';
$dbhost='caipiao.dbhost';
$conf['db']['user']='caipiao';
$conf['db']['password']='caipiao';
$conf['db']['charset']='utf8';
$conf['db']['prename']='caipiao_';

$conf['cache']['expire']=0;
$conf['cache']['dir']='cache/';

$conf['url_modal']=2;

$conf['action']['template']='templates/';
$conf['action']['modals']='controller/';

$conf['member']['sessionTime']=15*60;	// 用户有效时长
$conf['node']['access']='http://localhost:65531';	// node访问基本路径

ini_set('display_errors', 'Off');
error_reporting(E_ERROR);

ini_set('date.timezone', 'PRC');

if(strtotime(date('Y-m-d',time()))>strtotime(date('Y-m-d',time()))){
	$GLOBALS['fromTime']=strtotime(date('Y-m-d',strtotime("-1 day")));
	$GLOBALS['toTime']=strtotime(date('Y-m-d',time()));
}else{
	
	$GLOBALS['fromTime']=strtotime(date('Y-m-d'));
	$GLOBALS['toTime']=strtotime(date('Y-m-d',strtotime("+1 day")));
}